package top.stmo.stmoBlog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.stmo.stmoBlog.dao.mapper.LinkMapper;
import top.stmo.stmoBlog.dao.pojo.Link;
import top.stmo.stmoBlog.service.LinkService;

import java.util.List;

@Service
public class LinkServiceImpl implements LinkService {

    @Autowired
    private LinkMapper linkMapper;


    @Override
    public List<Link> findAllLink() {
        LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper();
        List<Link> linkList = linkMapper.selectList(queryWrapper);
        return linkList;
    }
}
